//
//  MGTaxAndfeesUtil.h
//  MortgageHelper
//
//  Created by zhangxiang on 16/11/30.
//  Copyright © 2016年 zhangxiang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MGBaseRspModel.h"

@interface MGTaxAndfeesModel : MGBaseRspModel


@property (nonatomic ,copy) NSString * Id;          //id: <int> 主键ID,没有传"" 空代表新的查档，非空再次查询*
@property (nonatomic ,copy) NSString* transferPrice ;//transferPrice: <double> 过户价格 *
@property (nonatomic ,copy) NSString* area;         //area: <double> 面积 *
@property (nonatomic ,copy) NSString* housePrice ;   //housePrice: <double> 房产登记价格 *

@property (nonatomic ,assign)NSInteger houseType;   //houseType: <int> 住房类型 1：普通住宅 2：非普通 3：经济适用房
@property (nonatomic ,assign)NSInteger buyHouseYeas; //buyHouseYeas: <int>购房年限 1：不满两年 2：满两年 3：满五年 *
@property (nonatomic ,assign)NSInteger sellerOneHouse; //sellerOneHouse: <int>卖方是否唯一住宅 1：是 2：否*
@property (nonatomic ,assign)NSInteger buyerOneHouse;  //buyerOneHouse: <int>买方是否首套 1：是 2：否*

@property (nonatomic ,assign)NSInteger calcWay;  //税费计征方式
@property (nonatomic ,assign) double registerFee;

@property (nonatomic ,assign) double vaTax ;   // 增值税
@property (nonatomic ,assign) double deedTax;   // 契税
@property (nonatomic ,assign) double oneTax; // 个税
@property (nonatomic ,assign) double landtax;  //综合地价税
@property (nonatomic ,assign) double stampDuty;  // 印花税

@property (nonatomic ,assign) double total; //总的税费



@end

@interface MGTaxAndfeesUtil : NSObject


// 计算税费
+(MGTaxAndfeesModel *)TaxAndfeeswithcheckTransferPrice:(NSString *)checkTransferPrice area:(NSString *)area priceOfHouse:(NSString *)priceOfHouse housetype:(NSInteger )housetype timetype:(NSInteger )timetype onlyHouse:(NSInteger )onlyHouse firsthouse:(NSInteger )firsthouse sfjz:(NSInteger )sfjz;


@end

